package com.lpit.mapper;

import com.lpit.pojo.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
* @author Administrator
* @description 针对表【comment(评论表)】的数据库操作Mapper
* @createDate 2023-06-08 11:06:01
* @Entity com.lpit.pojo.Comment
*/
@Mapper
public interface CommentMapper extends BaseMapper<Comment> {
    @Select("select count(*)FROM `comment` WHERE article_id =#{article_id};")
    Integer commentByIdNumber(Integer id);
}




